import 'package:flutter/material.dart';
import 'package:kepu/widgets/textWithIcon.dart';

Widget refreshButton({required String text ,required void Function() func}) {
  return GestureDetector(
    onTap: func,
    child: Container(
      height: 40,
      width: 100,
      decoration: BoxDecoration(
        color: Color(0xff0aade9).withValues(alpha: 0.6),
        borderRadius: BorderRadius.circular(20),
      ),
      child: Center(child: labelText(text, color: Colors.white)),
    ),
  );
}
